<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">请求用户</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="member_id" lay-search>
                    <option value="">未选择</option>
                    {foreach $user_list as $k=>$v}
                    <!--{eq name='Think.get.member_id' value='$v.id.""'}-->
                    <option selected value="{$v.id}">{$v.username}</option>
                    <!--{else}-->
                    <option value="{$v.id}">{$v.username}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>


        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">订单号</label>
            <div class="layui-input-inline">
                <input name="order_no" value="{$Think.get.order_no|default=''}" placeholder="请输入订单号" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">添加时间</label>
            <div class="layui-input-inline">
                <input name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择添加时间" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">所属用户</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="user_id" lay-search>
                    <option value="">未选择</option>
                    {foreach $user_list as $k=>$v}
                    <!--{eq name='Think.get.user_id' value='$v.id.""'}-->
                    <option selected value="{$v.id}">{$v.username}</option>
                    <!--{else}-->
                    <option value="{$v.id}">{$v.username}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">选择车辆</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="car_id" lay-search>
                    <option value="">未选择</option>
                    {foreach $car_list as $k=>$v}
                    <!--{eq name='Think.get.car_id' value='$v.id.""'}-->
                    <option selected value="{$v.id}">{$v.name}</option>
                    <!--{else}-->
                    <option value="{$v.id}">{$v.name}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>


        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">使用状态</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="status">
                    {foreach [''=>'- 全部状态 -','0'=>'已取消','1'=>'预约充电/停车','2'=>'放行后 已预约','3'=>'充电/停车中','4'=>'充电/停车完成（待支付）','5'=>'已支付（待评论）','6'=>'已评论（全部完成）'] as $k=>$v}
                    <!--{eq name='Think.get.status' value='$k.""'}-->
                    <option selected value="{$k}">{$v}</option>
                    <!--{else}-->
                    <option value="{$k}">{$v}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">订单属性</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="type">
                    {foreach [''=>'- 全部类型 -','2'=>'预约停车','1'=>'预约充电'] as $k=>$v}
                    <!--{eq name='Think.get.type' value='$k.""'}-->
                    <option selected value="{$k}">{$v}</option>
                    <!--{else}-->
                    <option value="{$k}">{$v}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">所属电站</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="station_id" lay-search>
                    <option value="">未选择</option>
                    {foreach $station_list as $k=>$v}
                    <!--{eq name='Think.get.station_id' value='$v.id.""'}-->
                    <option selected value="{$v.id}">{$v.name}</option>
                    <!--{else}-->
                    <option value="{$v.id}">{$v.name}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">所属车位</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="park_id" lay-search>
                    <option value="">未选择</option>
                    {foreach $park_list as $k=>$v}
                    <!--{eq name='Think.get.park_id' value='$v.id.""'}-->
                    <option selected value="{$v.id}">{$v.name}</option>
                    <!--{else}-->
                    <option value="{$v.id}">{$v.name}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">所属电桩</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="device_id" lay-search>
                    <option value="">未选择</option>
                    {foreach $device_list as $k=>$v}
                    <!--{eq name='Think.get.device_id' value='$v.id.""'}-->
                    <option selected value="{$v.id}">{$v.name}</option>
                    <!--{else}-->
                    <option value="{$v.id}">{$v.name}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>

        <div style="clear: both"></div>


    </form>
    <script>
        form.render()
        laydate.render({range: true, elem: '[name="create_at"]'})
    </script>
</fieldset>